#include<stdio.h>
int main()
{
	int num[13]={999,45,56,54,57,78,65,87,12,30,20,11,18};
	int length = 13;
	int temp = 0;
	int i, j;
	for(int i = 1;i<length;i++)
	{
		for(int j = i-1;j>=0;j--)
		{
			if(num[j]>num[j+1])
			{
				int temp = num[j];
				num[j] = num[j+1];
				num[j+1] = temp;
			}
			else
			break;
		}
	}
	for(i=0;i<length;i++)
	{
		printf("%d ",num[i]);
	
	}
	return 0;
}
